﻿@{
    ViewBag.Title = "xin";
    Layout = "~/Views/Shared/ShouYe.cshtml";
}
@using Webdiyer.WebControls.Mvc;
@model PagedList<UI.ServiceReference1.Staff>
<link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
<script src="~/Scripts/js/jquery.min.js"></script>
<script src="~/Scripts/js/bootstrap.min.js"></script>
<h2>新进人员管理</h2>
<div>
    <form>
        <div>

            <br />
            <table class="table table-bordered table-hover definewidth m10">
                <tr>
                    <td>编号</td>
                    <td>姓名</td>
                    <td>年龄</td>
                    <td>性别</td>
                    <td>住址</td>
                    <td>基本工资</td>
                    <td>工龄</td>
                    <td>入职时间</td>
                    <td>是否培训</td>
                    <td>所在部门</td>
                    <td>是否在职</td>
                    <td>技能特长</td>
                    <td>本人照片</td>
                    <td>操作</td>

                </tr>
                @foreach (var item in ViewBag.xinlist)
                {
                    <tr>
                        <td>@item.Staff_ID</td>
                        <td><a href="/XBK/JianL/@item.Staff_ID">@item.Staff_Name</a></td>
                        <td>@item.Staff_Age</td>
                        <td>@(item.Staff_Sex == 1 ? "女" : "男")</td>
                        <td>@item.Staff_Address</td>
                        <td>@item.Staff_Money</td>
                        <td>@item.Staff_GL</td>
                        <td>@item.Hiredate</td>
                        <td>@(item.Train == 1 ? "否" : "是")</td>
                        <td>@item.BuMen</td>
                        <td>@(item.RenyuanZT == 1 ? "否" : "是")</td>
                        <td>@item.JishuTechang</td>
                        <td><img src="@item.Image_Url" style="height:80px;width:80px" /></td>
                        <td style="display:none">@item.Image_Url</td>
                        <td><a data-target="#update" data-toggle="modal" href="#" onclick="update(this)"><input type="button" value="修改" class="btn btn-primary"></a></td>
                    </tr>
                }
            </table>
            <div>@Html.Pager(Model, new PagerOptions { PageIndexParameterName = "PageIndx" })</div>
        </div>
    </form>
</div>